package net.lovedna.data.request {
	import net.lovedna.data.Message;

	import flash.utils.ByteArray;

	/**
	 * @author lee
	 */
	public class RequestLogin extends Message {
		//0为登陆1为注册
		public var type:int;
		public var uid:String;
		public var pass:String;
		public function RequestLogin() {
			super();
		}
		override public function encode() : ByteArray {
			var data:ByteArray= new ByteArray();
			data.writeByte(type);
			data.writeUTF(uid);
			data.writeUTF(pass);
			return data;
		}
		
	}
}
